Loads the specified frame images (i.e. CompositeJpxImages.ColorImage, CompositeJpxImages.OpacityImage, and CompositeJpxImages.PreOpacityImage) from the specified JPEG 2000 stream using the specified options.
codecs
The Leadtools.Codecs.RasterCodecs object.
stream
A System.IO.Stream containing the image data being loaded.
frames
Frame indices. A list of integers specifying the indices of the frames to be loaded from the stream.
bitsPerPixel
Resulting image pixel depth. If this value is zero [0], the image will have the original file's pixel depth (the image will not be converted).
order
Color order for 16-bit, 24-bit, 32-bit, 48-bit, and 64-bit images. If the resulting image is less than 16 bits per pixel, this will have no effect since palletized images do not use color order. Valid values are as follows:
Value | Meaning |
---|---|
CodecsLoadByteOrder.Rgb | Red, green, and blue color order in memory |
CodecsLoadByteOrder.Bgr | Blue, green, and red color order in memory |
CodecsLoadByteOrder.Gray | 12-bit or 16-bit grayscale image. 12-bit and 16-bit grayscale images are supported only in the Document/Medical Imaging editions. |
CodecsLoadByteOrder.RgbOrGray | Load the image as red, green, blue OR as a 12-bit or 16-bit grayscale image. 12-bits and 16-bit grayscale images are supported only in the Document/Medical Imaging editions. |
CodecsLoadByteOrder.BgrOrGray | Load the image as blue, green, red OR as a 12-bit or 16-bit grayscale image. 12-bit and 16-bit grayscale images are supported only in the Document/Medical Imaging editions. |
CodecsLoadByteOrder.Romm | ROMM order. ROMM only supports 24-bit and 48-bit images. |
CodecsLoadByteOrder.BgrOrGrayOrRomm | Load the image as red, green, blue OR as a 12-bit or 16-bit grayscale image OR as ROMM. 12-bit and 16-bit grayscale images are supported only in the Document/Medical Imaging editions. ROMM only supports 24-bit and 48-bit color images. |
The CompositeJpxImages list that this method loads.
All engine boxes will be reset.
Products |
Support |
Feedback: ReadFrames(RasterCodecs,Stream,List<Int32>,Int32,CodecsLoadByteOrder) Method - Leadtools.Jpeg2000 |
Introduction |
Help Version 19.0.2017.3.22
|